<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>动态|兴旺化验室</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="<?php echo 'http://localhost/company01/hdcms/index/tpl/public/css/blog.css';?>" rel="stylesheet" type="text/css" />
<script type='text/javascript' src='http://localhost/company01/HD/org/jquery-1.7.2.min.js'></script>
<script type="text/javascript" src="<?php echo 'http://localhost/company01/hdcms/index/tpl/public/js/cufon-yui.js';?>"></script>
<script type="text/javascript" src="<?php echo 'http://localhost/company01/hdcms/index/tpl/public/js/arial.js';?>"></script>
<script type="text/javascript" src="<?php echo 'http://localhost/company01/hdcms/index/tpl/public/js/cuf_run.js';?>"></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/company01';
		HDPHP = 'http://localhost/company01/HD';
		STATIC = 'http://localhost/company01/static';
		DATA = 'http://localhost/company01/data';
		WEB = 'http://localhost/company01/index.php';
		APP = 'http://localhost/company01/index.php/index';
		CONTROL = 'http://localhost/company01/index.php/index/news';
		METH = 'http://localhost/company01/index.php/index/news/index';
		URL = 'http://localhost/company01/index.php/index/news/index/id/33';
		ORG = 'http://localhost/company01/HD/org';
		TPL = 'http://localhost/company01/hdcms/index/tpl';
		PUBLIC = 'http://localhost/company01/hdcms/index/tpl/public';
</script>

</head>
<body>
<div class="main">
      <div class="header">
  		  	<?php include  PATH_TPL.'/public/header.html';?>
  		</div>
		<div id="login"><?php include  PATH_TPL.'/public/head.html';?></div>
	<div id="login"><?php include  PATH_TPL.'/public/head.html';?></div>
      <div class="clr"></div>
      <div class="menu_nav">
          <ul>
              <li><a href="http://localhost/company01/index.php/index/index/index">首页</a></li>
              <li  class="active"><a href="http://localhost/company01/index.php/index/index/blog">动态</a></li>
              <li><a href="http://localhost/company01/index.php/index/index/support">支持</a></li>
  		      <li><a href="http://localhost/company01/index.php/index/index/contact">联系我们</a></li>
  		      <li><a href="http://localhost/company01/index.php/index/index/about">关于</a></li>
          </ul>
      </div>
      <div class="clr"></div>
 

    <div class="content" style="height:auto;overflow:hidden;">
       <div class="content_resize">
           <img src="<?php echo 'http://localhost/company01/hdcms/index/tpl/public/images/blogbg.jpg';?>" width="948" height="295" alt="image" class="hbg_img" />
        </div>
    </div>

      <div id="sidemap">
          您现在的位置：<a href="#">首页</a> > <a href="#">文章</a>
      </div>

    <div id="article">
	<?php if(!empty($row)){$listCount = count($row);$list_id=0;?><?php foreach($row as $key=>$v){?>
		<style>
		#article img{width:200px;}
		</style>
        <div style="font-size:16px;font-weight:bold;"><?php echo $v['title'];?></div>
			<li>作者：<?php echo $v['username'];?>发布时间：<?php echo $v['addtime'];?>点击量：<?php echo $v['click'];?></li>
			<?php echo $v['body'];?><?php echo $v['thumburl'];?>
			<li><?php echo $v['keywords'];?></li>
	<?php $list_id+=1;?><?php }?><?php }?>
   

		<style>
		#reply p{
			font-weight:normal;border-bottom:1px dotted;
		}
		</style>
<div id="reply" style="width:300px;height:auto;overflow:hidden;">

    <?php $a=1; ?>
		<script>
			$(function(){
				$(".rrrrr").click(function(){
					$(this).next("form").toggle();
				
				
				
				})
			
			
			
			
			})
		
		
		</script>
		
    <?php if(!empty($comment)){$listCount = count($comment);$list_id=0;?><?php foreach($comment as $key=>$v){?>
			<?php echo $v['html'];?>
        <?php if($v['level'] > 1){?> 
            &nbsp;&nbsp;<!-- <a href="http://localhost/company01/index.php/index/news/index/catid/<?php echo $v['catid'];?>"> --><span style="color:black;"><?php echo $v['username'];?></span>:<?php echo $v['rebody'];?><!-- </a> -->
            <?php  }else{ ?><!-- <a href="http://localhost/company01/index.php/index/news/index/catid/<?php echo $v['catid'];?>"> --><?php echo $a++;?>楼 | 回帖者：<span style="color:red;"><?php echo $v['username'];?></span> | 时间：<?php echo date("Y-m-d",$v['retime']);?><?php echo $v['rebody'];?><!-- </a> -->
        <?php }?>
		
		
		
			<a href="http://localhost/company01/index.php/index/news/good/cid/<?php echo $v['cid'];?>">《顶》<?php echo $v['good'];?></a>
				<a href="http://localhost/company01/index.php/index/news/bad/cid/<?php echo $v['cid'];?>">《踩》<?php echo $v['bad'];?></a>
				<span class="rrrrr" style="float:right;">《回复》</span>
			    <form  action="http://localhost/company01/index.php/index/news/add" method="post">
					<input type="hidden" name="pid" value="<?php echo $v['cid'];?>"/>
					<input type="hidden" name="nid" value="<?php echo $v['nid'];?>"/> 
					<input type="text" name="rebody"/>
					<input type="submit" value='子回复'/>
				</form>
    <?php $list_id+=1;?><?php }?><?php }?>	
	</div>	
		<?php  if(@empty($_SESSION['uid'])){?>
			<div>请<a href="http://localhost/company01/index.php?c=user&m=login_show">登录</a>后回复</div>
		<?php }else{ ?>
			
			 <a href="http://localhost/company01/index.php/index/news/add_replay_show/id/<?php echo $_GET['id'];?>">添加评论</a>
		<?php }?>	
	</div>  
</div>
<!-- 
      <div class="footer">
          <div class="footer_resize">
            <p class="lf">2006-2012&nbsp;&nbsp;&copy; Copyright<span>江苏兴化戴南兴旺化验室</span></p>
          <div class="clr"></div>
         </div>
      </div>
 -->
</body>
</html>